#ifndef PSO_H_INCLUDED
#define PSO_H_INCLUDED
#include "repositorio.h"


void calculaPbest(PARTICULA* pbest, PARTICULA particle, int tamanhoCascata);
void calculaLBest(PARTICULA* lbest, PARTICULA* pbest, int qtdParticulas, int tamanhoCascata);
int calculaGbest(PARTICULA* particulas, int qtdParticulas, int gbest);

PARTICULA otimizar(PARTICULA* particulas, int qtdParticulas, int tamanhoCascata, int qtdTipoFeature,
                        IMAGEM* bancoPos, int qtdPos, IMAGEM* bancoNeg, int qtdNeg,
                        IMAGEM* bancoPosValid, int qtdPosValid, IMAGEM* bancoNegValid,int qtdNegValid,
                        int largura, int altura, double taxaAcertoMin, double taxaFalsoPosMax, FILE* file);

#endif // PSO_H_INCLUDED
